﻿package models.types  {
	
	public class SectionType {
		
		private var _id:int;
		private var _subsections:/*SubsectionType*/Array;
		private var _total_subsections:int = 0;
		private var _title:String;
		private var _url:String;

		public function toString():String
		{
			return "[id: " + _id + " sebsections: " + _subsections.join(",") + " ]";
		}
		
		public function set id(val:int):void
		{
			_id = val;
		}
		
		public function get id():int
		{
			return _id;
		}
		
		public function set subsections(val:Array):void
		{
			_subsections = val;
		}
		
		public function get subsections():Array
		{
			return _subsections;
		}
		
		public function get total_subsections():int 
		{
			return _total_subsections;
		}
		
		public function set total_subsections(value:int):void 
		{
			_total_subsections = value;
		}
		
		public function get title():String
		{
			return _title;
		}
		
		public function set title(value:String):void 
		{
			_title = value;
		}
		
		public function get url():String 
		{
			return _url;
		}
		
		public function set url(value:String):void 
		{
			_url = value;
		}
	}
	
}
